package test;

import java.util.Objects;

/**
 * @author yujiafan
 * @version 1.0.0
 * @create 2022-04-01
 */
public class RiskSetTicketCheck {

    /**
     * 发票种类代码
     */
    private String code;

    /**
     * 发票种类名称
     */
    private String typeName;

    /**
     * 有效期起
     */
    private String startDate;

    /**
     * 有效期止
     */
    private String endDate;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "test.test.RiskSetTicketCheck{" +
                "code=" + code +
                ", typeName=" + typeName +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RiskSetTicketCheck that = (RiskSetTicketCheck) o;
        return Objects.equals(code, that.code) && Objects.equals(typeName, that.typeName) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(code, typeName, startDate, endDate);
    }
}
